/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pub.entity.PubHelp;
import com.thinkgem.jeesite.modules.pub.dao.PubHelpDao;

/**
 * 单表生成Service
 * @author zmy
 * @version 2019-04-18
 */
@Service
@Transactional(readOnly = true)
public class PubHelpService extends CrudService<PubHelpDao, PubHelp> {
	
	@Autowired
	private PubHelpDao pubHelpDao;

	public PubHelp get(String id) {
		return super.get(id);
	}
	
	public List<PubHelp> findList(PubHelp pubHelp) {
		return super.findList(pubHelp);
	}
	
	public Page<PubHelp> findPage(Page<PubHelp> page, PubHelp pubHelp) {
		return super.findPage(page, pubHelp);
	}
	
	@Transactional(readOnly = false)
	public void save(PubHelp pubHelp) {
		super.save(pubHelp);
	}
	
	@Transactional(readOnly = false)
	public void delete(PubHelp pubHelp) {
		super.delete(pubHelp);
	}

	@Transactional(readOnly = false)
	public int wxsave(String id, String title, String authorname, String article, String imgurl, String authorid,
			String publishtime, String destamt, String gotamt) {
		return pubHelpDao.wxsave(id,title,authorname,article,imgurl,authorid,publishtime,destamt,gotamt);
	}

	@Transactional(readOnly = false)
	public int updateamt(String userid, String articleid) {
		// TODO Auto-generated method stub
		return pubHelpDao.updateamt(userid,articleid);
	}

	public List<Object[]> helpList() {
		// TODO Auto-generated method stub
		return pubHelpDao.helpList();
	}
	
}